package com.sc.nft.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.entity.RoughStoneOrder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sc.nft.entity.dto.OrderDetailsDTO;
import com.sc.nft.entity.vo.RoughStoneOrderVO;
import com.sc.nft.enums.ClassifyType;
import com.sc.nft.enums.OrderStatusEnum;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * 原始订单表(sc_rough_stone_order)数据Mapper
 *
 * @author zxy
 * @description 汇付相关
 * @since 2023-08-14 16:40:43
 */
@Mapper
public interface RoughStoneOrderMapper extends BaseMapper<RoughStoneOrder> {

    OrderDetailsDTO getOrderDetailsById(@Param("id") Long id);

    Page<RoughStoneOrderVO> orderPageFromAdmin(@Param("orderNo") String orderNo, @Param("status") OrderStatusEnum status, @Param("typeClassify") ClassifyType typeClassify, @Param("startOrderTime") Date startOrderTime, @Param("endOrderTime") Date endOrderTime, @Param("startPayTime") Date startPayTime, @Param("endPayTime") Date endPayTime, @Param("userTel")String userTel,Page page);

    List<RoughStoneOrderVO> roughStoneOrderExcel(@Param("orderNo") String orderNo, @Param("status") OrderStatusEnum status, @Param("typeClassify") ClassifyType typeClassify, @Param("startOrderTime") Date startOrderTime, @Param("endOrderTime") Date endOrderTime, @Param("startPayTime") Date startPayTime, @Param("endPayTime") Date endPayTime, @Param("userTel")String userTel);
}
